<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
</head>
<body>
<div id="customer_list">
<h1 id="page_title">客户列表</h1>
<div id="customers">
<table>
<tr>
<td>序号</td>
<td>姓</td>
<td>名</td>
<td>中间字母</td>
<td>查看</td>
<td>注册帐户</td>
</tr>
<c:forEach varStatus="st" var="customer"
	items="${pagination.results}">
	<tr></tr>
<tr>
<td>${st.count }</td>
<td>${customer.fullName.lastName }</td>
<td>${customer.fullName.firstName }</td>
<td>${customer.middChar }</td>
<td><a href="customerDetail.action?id=${customer.id }">详情</a></td>
<td><a href="goRegAccount.action?id=${customer.id }">注册帐户</a></td>
</tr>
</c:forEach>
</table>
</div>

<div class="pagination">
<ul>
	<li>${pagination.size }条/页</li>
	<li>${pagination.pageSum }页</li>
	<li>${pagination.recordSum }条</li>
	<c:if test="${!pagination.first}">
		<li><a href="findCustomer.action?pagination.no=1&filtername=${filtername }&c_value=${c_value }">首页</a></li>
	</c:if>
	<c:if test="${pagination.previous}">
		<li><a href="findCustomer.action?pagination.no=${pagination.no-1 }&filtername=${filtername }&c_value=${c_value }">上页</a></li>
	</c:if>
	<c:if test="${pagination.next}">
		<li><a href="findCustomer.action?pagination.no=${pagination.no+1 }&filtername=${filtername }&c_value=${c_value }">下页</a></li>
	</c:if>
	<c:if test="${!pagination.last&&pagination.no>0}">
		<li><a href="findCustomer.action?pagination.no=${pagination.pageSum }&filtername=${filtername }&c_value=${c_value }">末页</a></li>
	</c:if>
</ul>
</div>
</div>
</body>
</html>